home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20000824-20010305
/
000260_news@columbia.edu _Wed Feb 7 09:45:22 2001.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
8KB
Return-Path: <news@columbia.edu>
Received: from watsun.cc.columbia.edu (watsun.cc.columbia.edu [128.59.39.2])
by monire.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id JAA02149
for <kermit.misc@cpunix.cc.columbia.edu>; Wed, 7 Feb 2001 09:45:21 -0500 (EST)
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id JAA19404
for <kermit.misc@watsun.cc.columbia.edu>; Wed, 7 Feb 2001 09:45:13 -0500 (EST)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id JAA00543
for kermit.misc@watsun.cc.columbia.edu; Wed, 7 Feb 2001 09:38:20 -0500 (EST)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
From: gneiss@mailroom.com (Bob)
Subject: Re: kermit not closing properly?
Date: Wed, 07 Feb 2001 14:36:28 -0000
Organization: Posted via Supernews, http://www.supernews.com
Message-ID: <90416A33Ebdorengneiss@207.126.101.100>
To: kermit.misc@columbia.edu
Frank, sorry for ambiguity, here is additional info:
1. using version 7.1.199 Alpha.02 on VMS, 7.0.196, 1 Jan 2000 on Linux
2. I have your old book, new one is on the way, have read the online update,
tutorial, etc. There's a lot to know about Kermit!!
3. I intend to add error checking, still testing, at this stage I know
connections are made, the files transfer, and "out" commands are executed by
reading the screen output.
4. here is the screen output after my file is transferred from Linux to VMS,
just before Kermit exits and my VMS job finishes (this is what I meant by "read
every line before exiting"). I would guess the problem is indicated by the
line "a network connection might still be open":
<snip--end of file transfer display>
Error Count: 0
Last Error:
Last Message: SUCCESS. Files: 1, Bytes: 40860290, 374038 CPS
C-Kermit 7.1.199 Alpha.02, 4 Jan 2001, for OpenVMS Alpha
Copyright (C) 1985, 2001,
Trustees of Columbia University in the City of New York.
Type ? or HELP for help.
RAID0:[DORENFELD.KERMIT] C-Kermit>#-- Kermit commands to send files from VMS to
Linux,
RAID0:[DORENFELD.KERMIT] C-Kermit>#-- decrypt them with PGP, send them back to
VMS
RAID0:[DORENFELD.KERMIT] C-Kermit>#
RAID0:[DORENFELD.KERMIT] C-Kermit>log session
RAID0:[DORENFELD.KERMIT] C-Kermit>set host porky #connect to porky
A network connection to porky.bestcomputer.com:23 might still be active.
OK to close? in ?No keywords match - in
OK to close? 5 ?No keywords match - 5
OK to close? Password:?No keywords match - "Password:"
OK to close? #login
Please respond Yes or No
OK to close? out ?No keywords match - out
OK to close? \13
?No keywords match - \13
OK to close? in ?No keywords match - in
OK to close? 5 ?No keywords match - 5
OK to close? Login: ?No keywords match - Login:
OK to close?
Please respond Yes or No
OK to close? out ?No keywords match - out
OK to close? aagaard\13
?No keywords match - aagaard\13
OK to close? in ?No keywords match - in
OK to close? 5 ?No keywords match - 5
OK to close? Password: ?No keywords match - Password:
OK to close?
Please respond Yes or No
OK to close? out ?No keywords match - out
OK to close? winter99\13
?No keywords match - asfsadfds\13
OK to close? ;
Please respond Yes or No
OK to close? in ?No keywords match - in
OK to close? 5 ?No keywords match - 5
OK to close? [aagaard@porky ?No keywords match - [aagaard@porky
OK to close? aagaard]$
?No keywords match - aagaard]$
OK to close? out ?No keywords match - out
OK to close? cd ?No keywords match - cd
OK to close? test\13?No keywords match - "test\13"
OK to close? #change to working dir
Please respond Yes or No
OK to close? in ?No keywords match - in
OK to close? 3 ?No keywords match - 3
OK to close? [aagaard@porky ?No keywords match - [aagaard@porky
OK to close? test]$
?No keywords match - test]$
OK to close? #out rm nopstoporky\13 #delete old pgp output
Please respond Yes or No
OK to close? out ?No keywords match - out
OK to close? rm ?No keywords match - rm
OK to close? *\13
?No keywords match - *\13
OK to close? in ?No keywords match - in
OK to close? 3 ?No keywords match - 3
OK to close? [aagaard@porky ?No keywords match - [aagaard@porky
OK to close? test]$
?No keywords match - test]$
OK to close? send ?No keywords match - send
OK to close? /binary ?No keywords match - /binary
OK to close? nopstoporky.pgp
?No keywords match - nopstoporky.pgp
OK to close? in ?No keywords match - in
OK to close? 30 ?No keywords match - 30
OK to close? [aagaard@porky ?No keywords match - [aagaard@porky
OK to close? test]$
?No keywords match - test]$
OK to close? out ?No keywords match - out
OK to close? pgp ?No keywords match - pgp
OK to close? -z ?No keywords match - -z
OK to close? "faffafaafd" ?No keywords match - "asdfasf"
OK to close? nopstoporky.pgp\13
?No keywords match - nopstoporky.pgp\13
OK to close? ;
Please respond Yes or No
OK to close? in ?No keywords match - in
OK to close? 30 ?No keywords match - 30
OK to close? [aagaard@porky ?No keywords match - [aagaard@porky
OK to close? test]$?No keywords match - "test]$"
OK to close? #wait 30 sec for pgp to finish
Please respond Yes or No
OK to close? set ?No keywords match - set
OK to close? protocol ?No keywords match - protocol
OK to close? kermit ?No keywords match - kermit
OK to close? {kermit -O}
?No keywords match - {kermit -O}
OK to close? get ?No keywords match - get
OK to close? /text ?No keywords match - /text
OK to close? nopstoporky
?No keywords match - nopstoporky
OK to close? out ?No keywords match - out
OK to close? exit\13
?No keywords match - exit\13
RAID0:[DORENFELD.KERMIT] C-Kermit>
Closing porky.bestcomputer.com:23...OK
=========================================================
fdc@watsun.cc.columbia.edu (Frank da Cruz) wrote in
<95p2s3$9v0$1@newsmaster.cc.columbia.edu>:
>In article <904061545bdorengneiss@207.126.101.100>,
>Bob <gneiss@mailroom.com> wrote:
>
>: Using the lastest release on both VMS and Linux...
>:
>Please be specific when you say "latest".
>
>: ... the script below logs in to
>: Linux from VMS, transfers a file, encrypts it, then gets a file back.
>: All appears normal up to the last line, "out exit\13", at which point
>: Kermit appears to try to read _every_ line of the command file
>: (according to my screen display) instead of the "exit"
>: command...eventually exit is recognized and kermit seems to quit
>: normally. Up to now I had a session.log to read, but now that is
>: empty at job completion.
>:
>I don't understand what you mean by "read _every_ line of the command
>file". Isn't that what you want it to do? I don't see any conditional
>stopping or branching in the command file, so Kermit normally would read
>and execute every line of it.
>
>: Thanks for any help, Bob
>:
>: log session
>:
>I'll have to take your word that Kermit has already created a session,
>but you didn't show that part. But what if the connection failed?
>
>: set host porky
>: in 5 Password:
>: out \13
>: in 5 Login:
>: out aagaard\13
>: in 5 Password:
>: out <password>\13
>: in 5 [aagaard@porky aagaard]$
>: out cd test\13
>: in 3 [aagaard@porky test]$
>: out rm *\13
>: in 3 [aagaard@porky test]$
>:
>Hint: Check the INPUT commands for success and failure. If an INPUT
>fails, you don't want the script to continue as if it had succeeded,
>right? Especially when "rm" commands are involved?
>
>: send /binary nopstoporky.pgp
>:
>You should test the SEND for success and failure too. What if the file
>was not sent successfully?
>
>: in 30 [aagaard@porky test]$
>: out pgp -z "secret passphrase" nopstoporky.pgp\13
>: ;
>: in 30 [aagaard@porky test]$
>: set protocol kermit {kermit -O} #start kermit server for "get"
>: only get /text nopstoporky
>: out exit\13
>
>Try the hints above, and also read the tutorial here:
>
> http://www.columbia.edu/kermit/ckscripts.html#tut
>
>and maybe your script will stop misbehaving.
>
>- Frank
>